package DesignPattern.Builder.Singleton.Hungry;

public class HungryStaticCode {
    private HungryStaticCode() {
    }

    //    声明HungryStaticCode类型的变量
    private static HungryStaticCode instance;

    //    静态代码块赋值
    static {
        instance = new HungryStaticCode();
    }

    public static HungryStaticCode getInstance() {
        return instance;
    }
}
